const Joi = require('joi');

exports.applySchema = Joi.object().keys({
  deviceID: Joi.string().required(),
  duration: Joi.number().integer().min(1).max(60).required(),
  deviceModel: Joi.string().required(),
  localTime:  Joi.date().iso().required(),
});

exports.deviceIDSchema = Joi.object().keys({
  deviceID: Joi.string().required(),
});
